Conversation
|
Claude finished @ovr's task in 2m 52s —— View job Code Review: feat(client-core): Improve format API
SummaryThis PR makes three improvements to
Code Quality ✅
Security ✅No security concerns. The changes are purely formatting/presentation logic with no user input reaching execution paths. Performance ✅No performance concerns. The boolean check adds a negligible branch at the top of Testing 🟡
OverallClean, focused PR. The sub-path export is a good pattern for keeping the CJS bundle lean. The |
| "./format": { | ||
| "types": "./dist/src/format.d.ts", | ||
| "import": "./dist/src/format.js" | ||
| } |
There was a problem hiding this comment.
Nit (non-blocking): The ./format sub-path only exposes types + import — there's no require entry. This means require('@cubejs-client/core/format') will fail for CJS consumers.
I see from src/index.ts:914 that this is intentional to avoid bloating the CJS/UMD bundle — which is a reasonable trade-off. Just flagging that this could surprise users who mix CJS and ESM. Consider adding a brief note in the package README or the JSDoc for formatValue mentioning ESM-only availability via the sub-path.
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## master #10692 +/- ##
===========================================
- Coverage 78.80% 58.03% -20.78%
===========================================
Files 465 215 -250
Lines 91944 16683 -75261
Branches 3357 3357
===========================================
- Hits 72458 9682 -62776
+ Misses 18996 6511 -12485
Partials 490 490
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.